#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void len(char* arr,int sz)
{
	int sum = 0;
	for (int i = 0; i < sz; i++)
	{
		if (arr[i] != 0)
		{
			sum++;
		}
	}
	printf("%d ", sum);
}
int main()
{
	char arr[] = "hello world";
	int sz = sizeof(arr) / sizeof(arr[0]);
	len(arr,sz);
	return 0;
}
